package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 用户卡种升级记录表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_upgrade_record")
@TableAlias("bur")
@ApiModel(value = "BusUpgradeRecord对象", description = "用户卡种升级记录表")
public class BusUpgradeRecord extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "upgradeRecordId", type = IdType.ASSIGN_ID)
    private Long upgradeRecordId;

    @ApiModelProperty(value = "用户用品Id")
    private Long userGoodsId;

    @ApiModelProperty(value = "旧卡种Id")
    private Long oldGoodsId;

    @ApiModelProperty(value = "新卡种Id")
    private Long newGoodsId;

}
